/**
 * 物料需求看板api
 */
import request from '@/utils/request'

export function getInfo(data) {
  return request({
    url: '/wms/material/demand/page',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/wms/material/demand',
    method: 'post',
    data
  })
}

export function update(id, data) {
  return request({
    url: `/wms/material/demand/${id}`,
    method: 'put',
    data
  })
}

export function deleteInfo(id) {
  return request({
    url: `/wms/material/demand/${id}`,
    method: 'delete'
  })
}

export function applyOut(list) {
  return request({
    url: `/wms/material/demand/apply/out`,
    method: 'post',
    data: list
  })
}
